/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.donkingliang.imageselector;

import com.donkingliang.imageselector.util.HeLog;
import com.flask.colorpicker.cameralibrary.util.AngleUtil;
import com.flask.colorpicker.cameralibrary.util.ScreenUtils;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import org.junit.Assert;
import org.junit.Test;

/**
 * 测试类
 *
 * @author ImageSelector
 * @since 2021-05-25
 */
public class MainAbilityTest {
    Ability ability = AbilityDelegatorRegistry.getAbilityDelegator().getCurrentTopAbility();

    /**
     * 测试类
     */
    @Test
    public void onStart() {
        HeLog.d("HiLog","单元测试");
        int senSer = AngleUtil.getSensorAngle(Constant.TENF,Constant.TWOTENT);
        Assert.assertEquals(0, senSer);
        ScreenUtils.getScreenHeight(ability.getApplicationContext());
        ScreenUtils.getScreenWidth(ability.getApplicationContext());
    }

    /**
     * 测试类
     */
    @Test
    public void enterPage() {
    }

    /**
     * 测试类
     */
    @Test
    public void onRequestPermissionsFromUserResult() {
    }

    /**
     * 测试类
     */
    @Test
    public void onAbilityResult() {
    }

    /**
     * 测试类
     */
    @Test
    public void cropImg() {
    }
}